package com.bagu;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfigration {

    /*这就是自己创建了一个Bean*/
    @Bean
    public String hello(){
        return "hello word!";
    }

}